package com.kaka.test;

import com.kaka.bean.Student;
import com.kaka.util.MyJDBCUtil;

import java.util.List;
import java.util.Random;

public class test1 {
    public static void main(String[] args) {
        int tid = 2;
        String sql = "select * from student where tid = ?";
        List<Student> students = MyJDBCUtil.dqlSQL(Student.class, sql, tid);
        Random random = new Random();
        System.out.println(students.size());
        for (int i = 0; i < 10; i++) {
            System.out.print(random.nextInt(students.size()) + ",");
        }
    }
}
